package cybertechcebu
{

	public class RemoteFile
	{
		private var _name:String;
		private var _path:String;
		private var _size:int;
		private var _isDir:Boolean;
		private var _icon:String;

		public function RemoteFile(name:String = "", path:String = "", size:int = 0, isDir:Boolean = false)
		{
			_name = name;
			_path = path;
			_size = size;
			_isDir = isDir;
			if(isDir){
				_icon = "assets/folder.png";
			}
		}

		public function get fullPath():String
		{
			return path + "/" + name;
		}

		public function get name():String
		{
			return _name;
		}

		public function get path():String
		{
			return _path;
		}

		public function get size():int
		{
			return _size;
		}

		public function get isDir():Boolean
		{
			return _isDir;
		}
		
		[Bindable]
		public function get icon():String{
			return _icon;
		}
		
		public function set icon(icon:String):void{
			_icon = icon;
		}

	}

}
